package com.month.security.controller;
import org.springframework.core.SpringVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {


    @GetMapping("/")
    public String index() {
        return "资源访问成功";
    }

    @GetMapping("/spring-version")
    public String version( String name) {
        return "WebMVC Version: " + SpringVersion.getVersion() +
                "\nCore Version: " + org.springframework.core.SpringVersion.getVersion();
    }

}
